package com.company.cloud.club.modules.core.util;

public class Utils {
    private static final String wxUaFeature = "MicroMessenger";
    private static final String androidUaFeature = "Android";
    private static final String iosUaFeature = "iPhone";

    public static boolean isWx(String ua) {
        if (ua == null) {
            return false;
        }
        return ua.contains(wxUaFeature);
    }

    public static boolean isAndroid(String ua) {
        if (ua == null) {
            return false;
        }
        return ua.contains(androidUaFeature);
    }

    public static boolean isIos(String ua) {
        if (ua == null) {
            return false;
        }
        return ua.contains(iosUaFeature);
    }
}
